package net.wanho.service.impl;

import lombok.RequiredArgsConstructor;
import net.wanho.entity.Role;
import net.wanho.mapper.RoleMapper;
import net.wanho.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2023-10-13 9:21
 * Description：<描述>
 */
@Service
@RequiredArgsConstructor
public class RoleServiceImpl implements RoleService {

    private final RoleMapper roleMapper;

    @Override
    public List<Role> findByUsername(String username) {
        return roleMapper.selectByUsername(username);
    }
}
